// 用户模块

export default {
    namespaced: true,
    state() {
        return {
            profile: {
                id: '',
                avater: '',
                nickname: '',
                account: '',
                mobile: '',
                token: '',
            }
        }
    },
    mutations: {
        // 修改用户信息，payload就是用户信息对象
        setUser(state, payload) {
            state.profile = payload
        }
    }
}